﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using VoL.Domain.IServices.HealthEducation;
using VOL.Core.Utilities;

namespace VOL.WebApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class HealthEducationController : ControllerBase
    {
        private readonly IHealthEducationServices healthEducationServices;

        public HealthEducationController(IHealthEducationServices _healthEducationServices)
        {
            healthEducationServices = _healthEducationServices;
        }
        [HttpGet]
        public Task<WebResponseContent> GetBroadCastManage([FromQuery]string? name)
        {
            return healthEducationServices.GetBroadCastManage();
        }
    }
}
